package com.tjp.eight.ui.fragment.setting.aboutus;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.tjp.eight.R;
import com.tjp.eight.WApplication;
import com.tjp.eight.base.BasePresenterImpl;
import com.tjp.eight.ui.fragment.BaseFragment;
import com.tjp.eight.utils.ApplicationUtil;

/**
 * Created by Administrator on 2017/3/31.
 */
public class FragmentAboutUs extends BaseFragment {
    @Override
    protected BasePresenterImpl createPresenter() {
        return null;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        contentView = super.onCreateView(inflater, container, savedInstanceState);
        if (contentView == null) {
            contentView = inflater.inflate(R.layout.fragment_about_us, container, false);
        }
        TextView tv_version = (TextView) contentView.findViewById(R.id.tv_version);
        String version = ApplicationUtil.getVerName(WApplication.getInstance()) + "." + ApplicationUtil.getVerCode(WApplication.getInstance());
        tv_version.setText("version " + version);
        return contentView;
    }
}
